import request from "@/plugins/request";
let pre = "/personal/pay";
if (process.env.NODE_ENV !== "development") {
    pre = "/api/sa/prslcenter" + pre;
}

// 根据登陆用户id查看用户支付密码是否设置
export function queryPersonPayment (data) {
    return request({
        url: `${pre}/queryPersonPayment`,
        method: "post",
        data
    });
}
// 根据登陆用户id和密码校验
export function checkPersonPayment (data) {
    return request({
        url: `${pre}/checkPersonPayment`,
        method: "post",
        data
    });
}
// 根据登陆用户id修改用户支付信息
export function editPersonPayment (data) {
    return request({
        url: `${pre}/editPersonPayment`,
        method: "post",
        data
    });
}
// 根据用户id查询余额 
export function queryBalance (params) {
    return request({
        url: `${pre}/queryBalance`,
        method: "get",
        params
    });
}
// 根据用户标识修改免密支付
export function getEditFree (data) {
    return request({
        url: `${pre}/editPaymentFree`,
        method: "post",
        data
    });
}
